--------------------------------------------------
-- @file src/kit/core/event/event.lua
-- @desc generate an event
-- @author doooreyn
-- @date 2020.11.14
-- @more 此文件生成一个事件
--------------------------------------------------
local proto = require("src.kit.core.proto")
local mapping = require("src.kit.core.event.mapping")
local event = proto.class("event")

--
-- @method event.ctor
-- @desc constructor of class `error`
-- @param em string eventname
-- @param msg string error description
--
function m:ctor(level, em, msg, context)
    self.level = level
    self.msg = msg
    self.event_name = em
    self.context = context
end


return event